package com.zjj.spring.javaconfig.config.dto;

import javax.annotation.PostConstruct;

import org.springframework.context.annotation.Bean;

public class Foo {
	private Bar bar;
	
	public Foo(Bar bar) {
		System.out.println("【1】Foo construct");
		this.bar = bar;
	}
	
	@PostConstruct
	public void init () {
		System.out.println("【2】Foo init - @PostConstruct");
	}
	public void initConfig () {
		System.out.println("【3】Foo initConfig - initMethod");
	}
	
	public void destroy () {
		System.out.println("【4】Foo destroy");
	}
	public void destroyConfig () {
		System.out.println("【5】Foo destroyConfig");
	}

}
